//
//  CJFullscreenVideoAd.h
//  CJMobileAd
//
//  Created by JJ on 2022/2/26.
//  Copyright © 2022 JJ. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@class CJFullscreenVideoAd;
@protocol CJFullscreenVideoAdDelegate <NSObject>

- (void)fullscreenVideoAdDidLoad:(CJFullscreenVideoAd *)fullscreenAd resourceId:(NSString *)resourceId;

- (void)fullscreenVideoAdLoadFailed:(CJFullscreenVideoAd *)fullscreenAd error:(NSError *)error;

- (void)fullscreenVideoAdOnClicked:(CJFullscreenVideoAd *)fullscreenAd;

- (void)fullscreenVideoAdOnClosed:(CJFullscreenVideoAd *)fullscreenAd;

@end

@interface CJFullscreenVideoAd : NSObject

@property (nonatomic,weak) id <CJFullscreenVideoAdDelegate> delegate;

- (instancetype)initWithResourceId:(NSString *)resourceId;

- (void)loadAdData;

- (void)showFromRootViewController:(UIViewController *)rootViewController;

@end

NS_ASSUME_NONNULL_END
